package com.cyf.plc.bean

import android.os.Parcelable
import androidx.annotation.Keep
import com.cyf.plc.model.PlcAttribute
import com.cyf.plc.model.PlcSubAttribute
import kotlinx.android.parcel.Parcelize

@Parcelize
@Keep
data class PanelStatus(
    var temp: Float,
    var setTemp: Int,
    var power: Boolean,
    var humidity: Float,

    //系统开关
    var powerOnAttribute: PlcSubAttribute = PlcSubAttribute("", 0f, ""),
    var powerOffAttribute: PlcSubAttribute = PlcSubAttribute("", 0f, ""),
    //湿度 温度 设定温度 开关
    var humidityPlcAttribute: PlcAttribute = PlcAttribute("", 0, "", "", ""),
    var tempPlcAttribute: PlcAttribute = PlcAttribute("", 0, "", "", ""),
    var setTempPlcAttribute: PlcAttribute = PlcAttribute("", 0, "", "", ""),
    var powerPlcAttribute: PlcAttribute = PlcAttribute("", 0, "", "", "")
) : Parcelable{
    override fun toString(): String {
        return "PanelStatus(temp=$temp, setTemp=$setTemp, power=$power, humidity=$humidity)"
    }
}